Skip to content

Added ViaRequest interceptor#387

Merged
ok2c merged 1 commit into
apache:5.3.xfrom
arturobernalg:feature/via-interceptor
Feb 10, 2023
Merged

Added ViaRequest interceptor#387
ok2c merged 1 commit into
apache:5.3.xfrom
arturobernalg:feature/via-interceptor

Conversation

@arturobernalg
Copy link
Copy Markdown
Member

No description provided.

@ok2c
Copy link
Copy Markdown
Member

ok2c commented Feb 8, 2023

@arturobernalg Please change the target branch to 5.3.x.

@arturobernalg arturobernalg force-pushed the feature/via-interceptor branch from e3cce0d to 36d1205 Compare February 8, 2023 19:33
@arturobernalg arturobernalg changed the base branch from master to 5.3.x February 8, 2023 19:44
@arturobernalg arturobernalg force-pushed the feature/via-interceptor branch 2 times, most recently from 701f3b9 to 6d2ab42 Compare February 8, 2023 19:47
@arturobernalg
Copy link
Copy Markdown
Member Author

@arturobernalg Please change the target branch to 5.3.x.

@ok2c Done

Args.notNull(context, "HTTP context");
final ProtocolVersion ver = context.getProtocolVersion() != null ? context.getProtocolVersion() : HttpVersion.HTTP_1_1;

final Header host = request.getHeader(HttpHeaders.HOST);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arturobernalg What happens if this interceptor gets added to an HTTP/2 message pipeline wherein Host header is illegal? I think you should be using HttpRequest#getAuthority instead.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable.. What about now @ok2c ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merged. Thank you, @arturobernalg, for this contribution.

@arturobernalg arturobernalg force-pushed the feature/via-interceptor branch from e6077e5 to 701f668 Compare February 10, 2023 08:30
@arturobernalg arturobernalg force-pushed the feature/via-interceptor branch from 0ef4af6 to 077113e Compare February 10, 2023 12:25
@ok2c ok2c merged commit 4107f19 into apache:5.3.x Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants